<?php

declare(strict_types=1);

namespace App\Listener;

use App\Event\UserAfter;
use Hyperf\Event\Contract\ListenerInterface;

class UserAfterListener implements ListenerInterface
{

    public function listen(): array
    {
        // TODO: Implement listen() method.
        return [
            UserAfter::class,
        ];
    }

    public function process(object $event)
    {
        // TODO: Implement process() method.
        sleep(3);
        var_dump($event->user);
    }
}